home *** CD-ROM | disk | FTP | other *** search
- #define CATCOMP_ARRAY
-
- #include "MP.h"
-
- STRPTR LibErrorString,
- LibNameVerFmt,
- LibOk;
-
- extern struct Catalog *Catalog;
-
- void InitStrings(void)
- {
- LibErrorString=GetString(MSG_REQ_COULDNT_OPEN_LIBS);
- LibNameVerFmt=GetString(MSG_REQ_NAME_VER_FMT);
- LibOk=GetString(MSG_REQ_OK);
- }
-
- struct CatCompArrayType *CCA;
-
- STRPTR GetString(LONG stringNum)
- {
- STRPTR builtIn;
- LONG dir=1;
-
- if(!stringNum)
- return(0);
-
- if(!CCA)
- CCA=CatCompArray;
-
- if(CCA->cca_ID>stringNum)
- dir=-1;
-
- // printf("ID=%d\n",stringNum);
- while (CCA->cca_ID != stringNum)
- {
- // printf("%7d - %8x : %s\n",CCA->cca_ID,CCA->cca_Str,CCA->cca_Str);
- CCA+=dir;
- }
- builtIn = CCA->cca_Str;
- // printf("%7d %s\n",CCA->cca_ID,CCA->cca_Str);
-
- if (LocaleBase)
- return(GetCatalogStr(Catalog,stringNum,builtIn));
- return(builtIn);
- }
-
-